package Text1;

import java.util.Iterator;
import java.util.LinkedList;

/*
 *@Student 张策
 */
public class text2 {
    public static void main(String[] args) {
        LinkedList list=new LinkedList();
        list.add(1);
        list.add(2);
        list.add(3);
        System.out.println(list.remove());
        for (Object o :list) {
            System.out.println(o);
        }
        Iterator iterator=list.iterator();
//        while (iterator.hasNext()) {
//            System.out.println(iterator.next());
//        }
    }
}
